export const deviceImgList = {
    1: {
        name: "装载机",
        url: require("../images/device1.png")
    },
    2: {
        name: "挖掘机",
        url: require("../images/device2.png")
    },
    3: {
        name: "龙门吊",
        url: require("../images/device3.png")
    },
    4: {
        name: "叉车",
        url: require("../images/device4.png")
    },
    5: {
        name: "翻车机",
        url: require("../images/device5.png")
    },
    6: {
        name: "门机",
        url: require("../images/device6.png")
    },
    7: {
        name: "灌装设备",
        url: require("../images/device7.png")
    },
    8: {
        name: "充装设备",
        url: require("../images/device8.png")
    },
    9: {
        name: "包装设备",
        url: require("../images/device9.png")
    },
    10: {
        name: "堆码设备",
        url: require("../images/device10.png")
    },
    11: {
        name: "其他",
        url: require("../images/device11.png")
    }
};
export function getDeviceImg(type) {
    if (!type || !deviceImgList[type]) return false;
    return deviceImgList[type].url;
}
export function fontSizeFn(res) {
    const clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
    if (!clientWidth) return;
    let fontSize = clientWidth / 1536;
    return res * fontSize;
}